package com.a.a;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

final class v extends d implements u {
    private volatile boolean onItemCalled;

    v(@Nullable t arg2, @Nullable o arg3, @NonNull o arg4) {
        super(((b)arg2), arg3, arg4);
        this.onItemCalled = false;
    }

    public final void onItem(@Nullable Object arg3) {
        h v0 = this.c;
        if(this.onCompleteCalled) {
            throw new RuntimeException("onItem should not be called after onComplete has been called");
        }

        if(this.onItemCalled) {
            throw new RuntimeException("onItem should not be called multiple times");
        }

        if(v0 != null && !this.b) {
            this.a(new l(((t)v0), arg3));
        }

        this.onItemCalled = true;
    }
}

